/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.longview.io.modules.grassfeedback.entity;

import org.hibernate.validator.constraints.Length;
import org.joda.time.DateTime;

import com.longview.io.common.persistence.DataEntity;
import com.longview.io.modules.userinfo.entity.UserInfo;

/**
 * 意见反馈Entity
 * @author LDN
 * @version 2018-10-24
 */
public class GrassFeedback extends DataEntity<GrassFeedback> {
	
	private static final long serialVersionUID = 1L;
	private UserInfo userinfo;		// 用户
	private String title;		// 标题
	private String remark;		// 评论内容 
	
	public GrassFeedback() {
		super();
	}

	public GrassFeedback(String id){
		super(id);
	}

	
	public UserInfo getUserinfo() {
		return userinfo;
	}

	public void setUserinfo(UserInfo userinfo) {
		this.userinfo = userinfo;
	}
	
	@Length(min=0, max=50, message="标题长度必须介于 0 和 50 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=0, max=100, message="评论内容长度必须介于 0 和 100 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}